package com.deyuanyun.pic.pbf.service.impl;

import com.deyuanyun.pic.pbf.domain.Trench;
import com.deyuanyun.pic.pbf.mapper.TrenchMapper;
import com.deyuanyun.pic.pbf.service.TrenchService;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TrenchServiceImpl implements TrenchService {
    @Autowired
    private TrenchMapper trenchMapper;

    private static final Logger logger = LoggerFactory.getLogger(TrenchServiceImpl.class);

    public Trench selectByPrimaryKey(String id) {
        return this.trenchMapper.selectByPrimaryKey(id);
    }

    public int deleteByPrimaryKey(String id) {
        return this.trenchMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Trench record) {
        return this.trenchMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Trench record) {
        return this.trenchMapper.updateByPrimaryKey(record);
    }

    public int insert(Trench record) {
        return this.trenchMapper.insert(record);
    }
}